﻿namespace DaxStudio.QueryTrace
{
	// Copied from Microsoft.AnalysisServices 11.0
	// could possibly be trimmed down as we only use a small subset of these
	// 2018-07-01: refreshed list, so we have BatchVertiPaqScan
	// 2021-10-17: refreshed list, so we have GraphCreated and GraphFinished
	public enum DaxStudioTraceEventSubclass
    {
		NotAvailable,
		InstanceShutdown,
		InstanceStarted,
		InstancePaused,
		InstanceContinued,
		Backup,
		Restore,
		Synchronize,
		Process,
		Merge,
		Delete,
		DeleteOldAggregations,
		Rebuild,
		Commit,
		Rollback,
		CreateIndexes,
		CreateTable,
		InsertInto,
		Transaction,
		Initialize,
		Discretize,
		Query,
		CreateView,
		WriteData,
		ReadData,
		GroupData,
		GroupDataRecord,
		BuildIndex,
		Aggregate,
		BuildDecode,
		WriteDecode,
		BuildDataMiningDecode,
		ExecuteSql,
		ExecuteModifiedSql,
		Connecting,
		BuildAggregationsAndIndexes,
		MergeAggregationsOnDisk,
		BuildIndexForRigidAggregations,
		BuildIndexForFlexibleAggregations,
		WriteAggregationsAndIndexes,
		WriteSegment,
		DataMiningProgress,
		ReadBufferFullReport,
		ProactiveCacheConversion,
		BuildProcessingSchedule,
		MdxQuery,
		DmxQuery,
		SqlQuery,
		Create,
		Alter,
		DesignAggregations,
		WBInsert,
		WBUpdate,
		WBDelete,
		MergePartitions,
		Subscribe,
		Batch,
		BeginTransaction,
		CommitTransaction,
		RollbackTransaction,
		GetTransactionState,
		Cancel,
		Import80MiningModels,
		Other,
		DiscoverConnections,
		DiscoverSessions,
		DiscoverTransactions,
		DiscoverDatabaseConnections,
		DiscoverJobs,
		DiscoverLocks,
		DiscoverPerformanceCounters,
		DiscoverMemoryUsage,
		DiscoverJobProgress,
		DiscoverMemoryGrant,
		SchemaCatalogs,
		SchemaTables,
		SchemaColumns,
		SchemaProviderTypes,
		SchemaCubes,
		SchemaDimensions,
		SchemaHierarchies,
		SchemaLevels,
		SchemaMeasures,
		SchemaProperties,
		SchemaMembers,
		SchemaFunctions,
		SchemaActions,
		SchemaSets,
		DiscoverInstances,
		SchemaKpis,
		SchemaMeasureGroups,
		SchemaCommands,
		SchemaMiningServices,
		SchemaMiningServiceParameters,
		SchemaMiningFunctions,
		SchemaMiningModelContent,
		SchemaMiningModelXml,
		SchemaMiningModels,
		SchemaMiningColumns,
		DiscoverDataSources,
		DiscoverProperties,
		DiscoverSchemaRowsets,
		DiscoverEnumerators,
		DiscoverKeywords,
		DiscoverLiterals,
		DiscoverXmlMetadata,
		DiscoverTraces,
		DiscoverTraceDefinitionProviderInfo,
		DiscoverTraceColumns,
		DiscoverTraceEventCategories,
		SchemaMiningStructures,
		SchemaMiningStructureColumns,
		DiscoverMasterKey,
		SchemaInputDataSources,
		DiscoverLocations,
		DiscoverPartitionDimensionStat,
		DiscoverPartitionStat,
		DiscoverDimensionStat,
		ProactiveCachingBegin,
		ProactiveCachingEnd,
		FlightRecorderStarted,
		FlightRecorderStopped,
		ConfigurationPropertiesUpdated,
		SqlTrace,
		ObjectCreated,
		ObjectDeleted,
		ObjectAltered,
		ProactiveCachingPollingBegin,
		ProactiveCachingPollingEnd,
		FlightRecorderSnapshotBegin,
		FlightRecorderSnapshotEnd,
		ProactiveCachingNotifiableObjectUpdated,
		LazyProcessingStartProcessing,
		LazyProcessingProcessingComplete,
		SessionOpenedEventBegin,
		SessionOpenedEventEnd,
		SessionClosingEventBegin,
		SessionClosingEventEnd,
		CubeOpenedEventBegin,
		CubeOpenedEventEnd,
		CubeClosingEventBegin,
		CubeClosingEventEnd,
		GetData,
		ProcessCalculatedMembers,
		PostOrder,
		SerializeAxes,
		SerializeCells,
		SerializeSqlRowset,
		SerializeFlattenedRowset,
		CacheData,
		NonCacheData,
		InternalData,
		SqlData,
		MeasureGroupStructuralChange,
		MeasureGroupDeletion,
		GetDataFromMeasureGroupCache,
		GetDataFromFlatCache,
		GetDataFromCalculationCache,
		GetDataFromPersistedCache,
		Detach,
		Attach,
		AnalyzeEncodeData,
		CompressSegment,
		WriteTableColumn,
		RelationshipBuildPrepare,
		BuildRelationshipSegment,
		SchemaMeasureGroupDimensions,
		Load,
		MetadataLoad,
		DataLoad,
		PostLoad,
		MetadataTraversalDuringBackup,
		SetAuthContext,
		ImageLoad,
		ImageSave,
		TransactionAbortRequested,
		VertiPaqScan,
		TabularQuery,
		VertiPaq,
		HierarchyProcessing,
		VertiPaqScanInternal,
		TabularQueryInternal,
		SwitchingDictionary,
		MdxScript,
		MdxScriptCommand,
		DiscoverXEventTraceDefinition,
		UserHierarchyProcessingQuery,
		UserHierarchyProcessingQueryInternal,
		DAXQuery,
		DISCOVER_COMMANDS,
		DISCOVER_COMMAND_OBJECTS,
		DISCOVER_OBJECT_ACTIVITY,
		DISCOVER_OBJECT_MEMORY_USAGE,
		DISCOVER_XEVENT_TRACE_DEFINITION,
		DISCOVER_STORAGE_TABLES,
		DISCOVER_STORAGE_TABLE_COLUMNS,
		DISCOVER_STORAGE_TABLE_COLUMN_SEGMENTS,
		DISCOVER_CALC_DEPENDENCY,
		DISCOVER_CSDL_METADATA,
		VertiPaqCacheExactMatch,
		InitEvalNodeStart,
		InitEvalNodeEnd,
		BuildEvalNodeStart,
		BuildEvalNodeEnd,
		PrepareEvalNodeStart,
		PrepareEvalNodeEnd,
		RunEvalNodeStart,
		RunEvalNodeEnd,
		BuildEvalNodeEliminatedEmptyCalculations,
		BuildEvalNodeSubtractedCalculationSpaces,
		BuildEvalNodeAppliedVisualTotals,
		BuildEvalNodeDetectedCachedEvaluationNode,
		BuildEvalNodeDetectedCachedEvaluationResults,
		PrepareEvalNodeBeginPrepareEvaluationItem,
		PrepareEvalNodeFinishedPrepareEvaluationItem,
		RunEvalNodeFinishedCalculatingItem,
		DAXVertiPaqLogicalPlan,
		DAXVertiPaqPhysicalPlan,
		DAXDirectQueryAlgebrizerTree,
		DAXDirectQueryLogicalPlan,
		CloneDatabase,
		RGWLGroupExceedHighMemoryLimit,
		RGWLGroupExceedHardMemoryLimit,
		RGWLGroupBelowHighMemoryLimit,
		RGWLGroupBelowHardMemoryLimit,
		VertiPaqScanQueryPlan,
		VertiPaqScanLocal,
		VertiPaqScanRemote,
		Interpret,
		TabularCreate,
		TabularAlter,
		TabularDelete,
		TabularRefresh,
		ExtAuth,
		Dbcc,
		TabularRename,
		TabularSequencePoint,
		TabularCommit,
		TabularSave,
		DISCOVER_RESOURCE_POOLS,
		DISCOVER_RING_BUFFERS,
		TabularSchemaModel,
		TabularSchemaDataSources,
		TabularSchemaTables,
		TabularSchemaColumns,
		TabularSchemaAttributeHierarchies,
		TabularSchemaPartitions,
		TabularSchemaRelationships,
		TabularSchemaMeasures,
		TabularSchemaHierarchies,
		TabularSchemaLevels,
		TabularSchemaTableStorages,
		TabularSchemaColumnStorages,
		TabularSchemaPartitionStorages,
		TabularSchemaSegmentMapStorages,
		TabularSchemaDictionaryStorages,
		TabularSchemaColumnPartitionStorages,
		TabularSchemaRelationshipStorages,
		TabularSchemaRelationshipIndexStorages,
		TabularSchemaAttributeHierarchyStorages,
		TabularSchemaHierarchyStorages,
		TabularSchemaKpis,
		TabularSchemaStorageFolders,
		TabularSchemaStorageFiles,
		TabularSchemaSegmentStorages,
		TabularSchemaCultures,
		TabularSchemaObjectTranslations,
		TabularSchemaLinguisticMetadata,
		TabularSchemaAnnotations,
		TabularUpgrade,
		TabularMergePartitions,
		DisableDatabase,
		TokenizationStoreProcessing,
		CheckTabularDataStructure,
		CheckColumnDataForDuplicatesOrNullValues,
		JSON,
		DISCOVER_XEVENT_PACKAGES,
		DISCOVER_XEVENT_OBJECTS,
		DISCOVER_XEVENT_OBJECT_COLUMNS,
		DISCOVER_XEVENT_SESSION_TARGETS,
		TabularSchemaPerspectives,
		TabularSchemaPerspectiveTables,
		TabularSchemaPerspectiveColumns,
		TabularSchemaPerspectiveHierarchies,
		TabularSchemaPerspectiveMeasures,
		TabularSchemaRoles,
		TabularSchemaRoleMemberships,
		TabularSchemaTablePermissions,
		TabularSchemaVariations,
		VertiPaqCacheProbe,
		VertiPaqCacheNotFound,
		JsonCommand,
		Evict,
		CommitImport,
		OpenedConnection,
		BatchVertiPaqScan,
		RewriteAttempted,
		AnalyzeRefreshPolicyImpactForTabularPartition,
		TabularSchemaSets,
		TabularSchemaPerspectiveSets,
		TabularSchemaExtendedProperties,
		TabularSchemaExpressions,
		TabularSchemaColumnPermissions,
		TabularSchemaDetailRowsDefinitions,
		TabularSchemaRelatedColumnDetails,
		TabularSchemaGroupByColumns,
		TabularSchemaCalculationGroups,
		TabularSchemaCalculationItems,
		TabularSchemaAlternateOfDefinitions,
		TabularSchemaRefreshPolicies,
		DiscoverPowerBIDatasources,
		TabularSchemaFormatStringDefinitions,
		DiscoverMExpressions,
		TabularSchemaPowerbiRoles,
		TabularSchemaQueryGroups,
		DiscoverDBMemoryStats,
		DiscoverMemoryStats,
		TabularSchemaAnalyticsAimetadata,
		DiscoverObjectCounters,
		GraphCreated,
		GraphFinished
	}

}
